﻿package com.moonshineproject.utils {
	import flash.events.Event;
	
	/**
	 * ...
	 * @author SmilyOrg
	 */
	public class PastebinEvent extends Event {
		public static const SUCCESS:String = "success";
		public static const ERROR:String = "error";
		
		public var message:String;
		public function PastebinEvent(type:String, message:String, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			this.message = message;
		} 
		
		public override function clone():Event { 
			return new PastebinEvent(type, message, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("PastebinEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}